package com.tms.drivermanagement.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.tms.drivermanagement.mapper.DrivermanagementMapper;
import com.tms.drivermanagement.domain.Drivermanagement;
import com.tms.drivermanagement.service.IDrivermanagementService;

/**
 * 司机管理Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-11-01
 */
@Service
public class DrivermanagementServiceImpl implements IDrivermanagementService 
{
    @Autowired
    private DrivermanagementMapper drivermanagementMapper;

    /**
     * 查询司机管理
     * 
     * @param id 司机管理主键
     * @return 司机管理
     */
    @Override
    public Drivermanagement selectDrivermanagementById(Integer id)
    {
        return drivermanagementMapper.selectDrivermanagementById(id);
    }

    /**
     * 查询司机管理列表
     * 
     * @param drivermanagement 司机管理
     * @return 司机管理
     */
    @Override
    public List<Drivermanagement> selectDrivermanagementList(Drivermanagement drivermanagement)
    {
        return drivermanagementMapper.selectDrivermanagementList(drivermanagement);
    }

    /**
     * 新增司机管理
     * 
     * @param drivermanagement 司机管理
     * @return 结果
     */
    @Override
    public int insertDrivermanagement(Drivermanagement drivermanagement)
    {
        return drivermanagementMapper.insertDrivermanagement(drivermanagement);
    }

    /**
     * 修改司机管理
     * 
     * @param drivermanagement 司机管理
     * @return 结果
     */
    @Override
    public int updateDrivermanagement(Drivermanagement drivermanagement)
    {
        return drivermanagementMapper.updateDrivermanagement(drivermanagement);
    }

    /**
     * 批量删除司机管理
     * 
     * @param ids 需要删除的司机管理主键
     * @return 结果
     */
    @Override
    public int deleteDrivermanagementByIds(Integer[] ids)
    {
        return drivermanagementMapper.deleteDrivermanagementByIds(ids);
    }

    /**
     * 删除司机管理信息
     * 
     * @param id 司机管理主键
     * @return 结果
     */
    @Override
    public int deleteDrivermanagementById(Integer id)
    {
        return drivermanagementMapper.deleteDrivermanagementById(id);
    }
}
